package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserPrivateBeanMapper;
import com.billing.model.dao.UserPrivateBufferBeanMapper;
import com.billing.model.entity.TUserPrivate;
import com.billing.model.entity.TUserPrivateBuffer;
import com.billing.service.UserPrivateBufferService;
import com.billing.service.UserPrivateService;
@Service
public class UserPrivateBufferServiceImpl implements UserPrivateBufferService {
	@Resource
	private UserPrivateBufferBeanMapper userPrivateCopyBeanMapper; 
	public int insertTUserPrivate(TUserPrivateBuffer userPrivate) {
		return userPrivateCopyBeanMapper.insertTUserPrivate(userPrivate);
	}
	public TUserPrivateBuffer selectUserPrivateByUid(String userid) {
		return userPrivateCopyBeanMapper.selectUserPrivateByUid(userid);
	}
	public int updateUserPrivate(TUserPrivateBuffer userPrivate) {
		return userPrivateCopyBeanMapper.updateUserPrivate(userPrivate);
	}
	public TUserPrivateBuffer selectUserPrivateById(String id) {
		return userPrivateCopyBeanMapper.selectUserPrivateById(id);
	}
	@Override
	public int updateUserPrivateByUid(TUserPrivateBuffer userPrivate) {
		return userPrivateCopyBeanMapper.updateUserPrivateByUid(userPrivate);
	}
	@Override
	public int insertTUserPrivateByMain(TUserPrivate userPrivate) {
		return userPrivateCopyBeanMapper.insertTUserPrivateByMain(userPrivate);
	}
	@Override
	public int updateUserPrivateByMain(TUserPrivate userPrivate) {
		return userPrivateCopyBeanMapper.updateUserPrivateByMain(userPrivate);
	}
	@Override
	public int updateUserPrivateByUidByMain(TUserPrivate userPrivate) {
		return userPrivateCopyBeanMapper.updateUserPrivateByUidByMain(userPrivate);
	}

}
